﻿using Cl.Entity.BaseEntity;
using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace Cl.Entity.DataBaseEntity.User
{
    [SugarTable("User_UserLogin")]
    public class UserLogin : EntityBase
    {

        /// <summary>
        /// 账号
        /// </summary>
        [SugarColumn(ColumnName = "Account", Length = 255)]
        public string Account { get; set; }

        /// <summary>
        /// token
        /// </summary>
        //ColumnDataType 一般用于单个库数据库，如果多库不建议用
        [SugarColumn(ColumnDataType = "Nvarchar(500)")]
        public string Token { get; set; } = string.Empty;

        /// <summary>
        /// 过期时间
        /// </summary>

        public DateTime ExpireTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>

        public DateTime CreateTime { get; set; }
    }
}
